<?php
namespace Users\Model;

class Usersnew
{
	public $user_id;
	public $company_name;
	public $industry;
	public $address1;
	public $address2;
	public $address3;
	public $landmarknearby;
	public $city;
	public $country;
	public $email;
	public $password;
	public $phone;
	public $fax;
	public $contact_person;
	public $mobile;
	public $second_email;
	public $bankaddress;
	public $account_number;
	public $note;
	public $parent_user_id;
	public $user_type;
	public $u_status;
	public $usercountry;
	public $industryname;
	public $currency;
	public $combination_id;
	public $country_name;
	public $countUsers;
	
	public function exchangeArray($data)
	{
		$this->user_id  = (isset($data['user_id']))    ? $data['user_id']	: null;
		$this->country_name  = (isset($data['country_name']))    ? $data['country_name']	: null;
		$this->countUsers  = (isset($data['countUsers']))    ? $data['countUsers']	: null;
		$this->company_name  = (isset($data['company_name']))   
													    ? $data['company_name']	: null;
		
		$this->industry  = (isset($data['industry']))    ? $data['industry']	: null;
		$this->address1  = (isset($data['address1']))    ? $data['address1']	: null;
		$this->address2  = (isset($data['address2']))    ? $data['address2']	: null;
		$this->address3  = (isset($data['address3']))    ? $data['address3']	: null;
		
		$this->landmarknearby  = (isset($data['landmarknearby'])) 
											? $data['landmarknearby']	: null;
											
		$this->city     = (isset($data['city']))   	 ? $data['city']	: null;
		$this->country  = (isset($data['country']))  ? $data['country']	: null;
		$this->email    = (isset($data['email']))    ? $data['email']	: null;
		$this->password = (isset($data['password'])) ? $data['password']: null;
		$this->phone    = (isset($data['phone']))    ? $data['phone']	: null;
		$this->fax      = (isset($data['fax']))      ? $data['fax']	    : null;
		$this->combination_id      = (isset($data['combination_id']))      ? $data['combination_id']	    : null;
		
		$this->contact_person  = (isset($data['contact_person']))   
											? $data['contact_person']	: null;
											
		$this->mobile   = (isset($data['mobile']))    ? $data['mobile']	: null;
		
		$this->second_email  = (isset($data['second_email'])) 
													 ? $data['second_email']: null;
													 
		$this->bankaddress  = (isset($data['bankaddress']))    
													 ? $data['bankaddress']	: null;
													 
		$this->account_number  = (isset($data['account_number']))    
													? $data['account_number'] : null;
													
		$this->note  = (isset($data['note']))       ? $data['note']	     : null;
		
		$this->parent_user_id  = (isset($data['parent_user_id']))     
													? $data['parent_user_id']	: null;
													
		$this->user_type  = (isset($data['user_type']))    ? $data['user_type']	: null;	 
        $this->u_status  = (isset($data['u_status']))    ? $data['u_status']	: null;			
        $this->usercountry  = (isset($data['usercountry']))    ? $data['usercountry']	: null;			
        $this->industryname  = (isset($data['industryname']))    ? $data['industryname']	: null;	
        $this->currency  = (isset($data['currency']))    ? $data['currency']	: null;		
    }
	public function getArrayCopy()
	{
		return get_object_vars($this);
	}

}